package com.glory.hikvisionmobile.bean.DataCollect;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class DataCollectBean implements Parcelable {


    private List<XEdcItemSetLinesBean> xEdcItemSetLines;

    public List<XEdcItemSetLinesBean> getxEdcItemSetLines() {
        if (xEdcItemSetLines == null) {
            return new ArrayList<>();
        }
        return xEdcItemSetLines;
    }

    public void setxEdcItemSetLines(List<XEdcItemSetLinesBean> xEdcItemSetLines) {
        this.xEdcItemSetLines = xEdcItemSetLines;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeTypedList(this.xEdcItemSetLines);
    }

    public DataCollectBean() {
    }

    protected DataCollectBean(Parcel in) {
        this.xEdcItemSetLines = in.createTypedArrayList(XEdcItemSetLinesBean.CREATOR);
    }

    public static final Parcelable.Creator<DataCollectBean> CREATOR = new Parcelable.Creator<DataCollectBean>() {
        @Override
        public DataCollectBean createFromParcel(Parcel source) {
            return new DataCollectBean(source);
        }

        @Override
        public DataCollectBean[] newArray(int size) {
            return new DataCollectBean[size];
        }
    };
}
